{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
	<div class="content-tabs">
			<ol class="breadcrumb">
				<li>
					<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
				</li>
				<li><strong>评价列表</strong></li>
			</ol>
		</div>
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">
        <div class="row">
            <div class="form-group">
            	&nbsp;&nbsp;&nbsp;&nbsp;
     		 	订单编号 <input type="text" name="order" placeholder="请输入订单编号" class="bank"> 
				商家名称 <input type="text" name="store_name" placeholder="请输入商家名称" class="bank">                                   
         		时间 <input type="text" id='add_time' name='add_time'   onclick='WdatePicker()'  placeholder="开始时间" class="bank" />
            	至<input type="text" id='end_time' name='end_time'   onclick='WdatePicker()'  placeholder="结束时间" class="bank" />
               	<input type='hidden' name="end_time"  value="2017-4-1" >
          		<span class="bank" style="border-radius:0px;border:1px;"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
            </div>
        </div>
        </form>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th  class="text-center">订单号</th>
                                <th  class="text-center">商家名称</th>
                                <th  class="text-center">商品评分</th>
                                <th  class="text-center">服务评分</th>
                                <th  class="text-center">快递评分</th>
                                <th  class="text-center">评价内容</th>
                                <th class="text-center">添加时间</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td class="text-center"><a href="{:url('show',['id'=>$ad.id])}" >{$ad.order_no}</a></td>
                        		<td class="text-center">{$ad.store_name}</td>
                        		<td class="text-center">{$ad.goods_score}</td>
                        		<td class="text-center">{$ad.service_score}</td>
                        		<td class="text-center">{$ad.express_score}</td>
                        		<td class="text-center">{$ad.content}</td>
                        		<td class="text-center">{$ad.add_time}</td>
                        		 <td class="text-center"><a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
                        		 </td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;   
    text-align:center;
    border-radius:5px;
}
</style>
{/block}